package com.fzy.auth.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.fzy.auth.vo.UserRoleRelListVo;

public class UserRoleRelListMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		UserRoleRelListVo vo = new UserRoleRelListVo();
		vo.setId(new Long(rs.getLong("ID")));
		vo.setUserId(new Long(rs.getLong("USER_ID")));
		vo.setRoleId(new Long(rs.getLong("ROLE_ID")));
		return vo;
	}

}
